﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Pyramid.Models
{
	/// <summary>
	/// 系统日志
	/// </summary>
	public class ApplicationLog
	{
		public int Id { get; set; }
		public DateTime Date { get; set; }

		[MaxLength(255)]
		[Column(TypeName = "VARCHAR")]
		public string Thread { get; set; }

		[MaxLength(50)]
		[Column(TypeName = "VARCHAR")]
		public string Level { get; set; }

		[MaxLength(255)]
		[Column(TypeName = "VARCHAR")]
		public string Logger { get; set; }

		[MaxLength(4000)]
		[Column(TypeName = "VARCHAR")]
		public string Message { get; set; }

		[MaxLength(2000)]
		[Column(TypeName = "VARCHAR")]
		public string Exception { get; set; }
	}
}